package com.maiji.cloud.service;

import com.baomidou.mybatisplus.service.IService;
import com.maiji.cloud.entities.login.Label;
import com.maiji.cloud.request.ReqMetaData;
import com.maiji.cloud.response.BaseDataResDto;
import com.maiji.cloud.response.BaseMetaResDto;
import com.maiji.cloud.response.login.LabelResData;
import java.util.List;

public interface LabelService extends IService<Label> {

    public static final String REDISNAMESPACE = "label";

    BaseDataResDto<List<LabelResData>> findAllLabelsBySource(String source, Integer listShow);

    BaseMetaResDto<List<LabelResData>> findAllLabels(String source, Integer listShow, String name, ReqMetaData metaData);

    BaseDataResDto<Label> addEditLabel(Label label);

    Label findLabelBySourceName(String source, String name);

    /**
     * 根据标签id获得标签集合
     * @return
     */
	List<Label> getLabelsByIds(List<String> list);

}
